<span class="ng2-imgcrop">
  <input *ngIf="!settings.noFileInput" type="file" accept="image/*" (change)="fileChangeListener($event)">
  <canvas #cropcanvas
          (mousedown)="onMouseDown($event)"
          (mouseup)="onMouseUp($event)"
          (mousemove)="onMouseMove($event)"
          (mouseleave)="onMouseUp($event)"
          (touchmove)="onTouchMove($event)"
          (touchend)="onTouchEnd($event)"
          (touchstart)="onTouchStart($event)">
  </canvas>
</span>
